package com.qf.zyh.web.controller;

import com.qf.zyh.entity.EdocEntry;
import com.qf.zyh.services.EntryServices;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath*:application.xml")
public class Tes {
    @Autowired
    private EntryServices es;
    @Test
    public void t1(){
        Map<String, Object> all =es.getAll();
        for (Map.Entry<String, Object> m : all.entrySet()){
            System.out.println(m.getKey()+"**"+m.getValue());
        }
    }
}
